package com.wlw.eye.mvp.model

import android.content.Context
import com.wlw.eye.mvp.model.bean.HotBean
import com.wlw.eye.network.ApiService
import com.wlw.eye.network.RetrofitClient
import io.reactivex.Observable

class HotModel{
    fun loadData(context: Context,strategy:String?):Observable<HotBean>?{
        val retrofitClient=RetrofitClient.getInstance(context,ApiService.BASE_URL)
        var apiService = retrofitClient.create(ApiService::class.java)
        return strategy?.let { apiService?.getHotData(10, it,"26868b32e808498db32fd51fb422d00175e179df",83) }
    }
}